package com.oracle.service.iml;

import com.oracle.mapper.BoyMapper;
import com.oracle.service.IBoyService;
import com.oracle.vo.Boy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @program: CampusMatching
 * @description:
 * @author: zhaolei
 * @create: 2020-07-24 14:24
 **/
@Service
public class BoyServiceImp implements IBoyService {

    @Autowired
    BoyMapper boyMapper;

    @Override
    public List getBoyBySchool(String gschool) {
       return boyMapper.getBoyBySchool(gschool);
    }

    @Override
    public List getBoyByBirthday(Date gbirthday) {
        return boyMapper.getBoyByBirthday(gbirthday);
    }

    @Override
    public List getBoyByHobby(String ghobby) {
        return boyMapper.getBoyByHobby(ghobby);
    }

    //指定匹配
    @Override
    public  List getslf(){
        List list =new ArrayList();
        Boy boy = new Boy();
        boy.setBname("王一博");
        boy.setBsex("男");
        boy.setBheight("180");
        boy.setBbirthday(new Date(1997 / 11 / 29));
        boy.setBschool("哈佛大学");
        boy.setBhobby("弹钢琴,冲浪");
        list.add(boy);
        return  list;

    }
}
